package file;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张杰
 * Date: 2022-04-19
 * Time: 16:49
 */
//按照字符流写操作
public class Demo7 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("d:/test.txt")) {
            writer.write("bbx");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
